//
// Created by jsjxsy on 2022/11/17.
//

#include "Student.h"
#include <iostream>
using namespace std;
Student::Student(int no, string name, string pwd) {
  m_name = name;
  m_password = pwd;
  m_no = no;
}
/**
 //申请预约
//查看自身预约
//查看所有预约
//取消预约
 */
void Student::operator_menu() {
  bool is_exit = false;
  while (true) {
    show_menu();
    int selected;
    cin >> selected;
    switch (selected) {
      case 1:applyOrder();
        break;
      case 2:checkSelfOrder();
        break;
      case 3:checkAllOrder();
        break;
      case 4:cancelOrder();
        break;
      case 5:is_exit = true;
        break;
    }
    if (is_exit) {
      break;
    }
  }
}

void Student::show_menu() {
  cout << "学生操作的菜单界面" << endl;
  cout << "1.申请预约" << endl;
  cout << "2.查看自身预约" << endl;
  cout << "3.查看所有预约" << endl;
  cout << "4.取消预约" << endl;
  cout << "5.退出菜单" << endl;
  cout << "请选择菜单项:" << endl;
}

void Student::applyOrder() {

}

void Student::checkSelfOrder() {

}

void Student::checkAllOrder() {

}

void Student::cancelOrder() {

}